// -----------------------------------------------------------------------
//  <copyright file="DomainEventWrap.cs" company="LiuliuSoft">
//      Copyright (c) 2022-2022 DaprPlus. All rights reserved.
//  </copyright>
//  <site>https://www.dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2022-11-17 23:45</last-date>
// -----------------------------------------------------------------------

namespace DaprPlus.MediatR;

/// <summary>
/// 领域事件的INotification包装
/// </summary>
/// <typeparam name="TDomainEvent">领域事件类型</typeparam>
public class DomainEventWrap<TDomainEvent>(TDomainEvent domainEvent) : INotification
    where TDomainEvent : DomainEvent
{
    public TDomainEvent DomainEvent { get; } = domainEvent;
}
